package ird.taas.controller;

import ird.taas.persistence.dao.IRUGMUTBMapper;
import ird.taas.persistence.domain.IRUGMUTB;
import ird.taas.persistence.domain.IRUGMUTBExample;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class LoginController {

	@Autowired
	private IRUGMUTBMapper irugmutbMapper;
	
	@RequestMapping(value = "/login")
	public String sendEmail() {
		System.out.println("hha, login!!");
		List<IRUGMUTB> irugmutList = irugmutbMapper.selectAll();
		System.out.println("irugmutList="+irugmutList);
		
		IRUGMUTBExample example = new IRUGMUTBExample();
		example.createCriteria().andMenuidEqualTo("DMS");
		List<IRUGMUTB> irugmutList2 = irugmutbMapper.selectByExample(example);
		
		System.out.println("=================irugmutList2="+irugmutList2);
		return "/login";
	}
}
